package com.fqy.ticket.business.req;

import com.fqy.ticket.common.req.PageReq;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DailyTrainCarriageQueryReq extends PageReq {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    // 用于将 HTTP 请求中的日期字符串（如 2023-01-01）按指定格式自动转换为
    // Java 日期类型（如 LocalDate）
    private Date date;

    private String trainCode;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getTrainCode() {
        return trainCode;
    }

    public void setTrainCode(String trainCode) {
        this.trainCode = trainCode;
    }

    @Override
    public String toString() {
        return "DailyTrainCarriageQueryReq{" +
                "date=" + date +
                ", trainCode='" + trainCode + '\'' +
                "} " + super.toString();
    }
}